import {BasePage, BaseInput, BaseRule} from "../../../../ts/type";
import {replace} from "../../../../ts/util";

export let dictTypeSaveInit = (page: BasePage) => {
    let saveModel = page.models.filter(m => 'save' == m.formKey)[0]

// field input auto
// #bind.field.dictCode#
    saveModel.formInputs.push(replace(new BaseInput('字典编码', 'dictCode'), {
        span: 12
    }))
// $bind.field.dictCode$

// #bind.field.dictName#
    saveModel.formInputs.push(replace(new BaseInput('字典名称', 'dictName'), {
        span: 12
    }))
// $bind.field.dictName$


// field rule auto

}